<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="utf-8">
    <meta name="author" content="lcy">
    <script src="../jquery-3.1.1.js"></script>
    <title></title>
    <style>
        .outer{
            width: 300px;
            margin-left: 300px;
        }
        ul{
            padding: 0;
            margin: 0;
            list-style: none;
        }
        figure,li{
            margin: 0;
            border: 1px solid #999;
            padding: 5px 15px;
        }
        li{
            border-top: none;
        }
        .one figure{
            border-right: none;
        }
        figcaption{
            text-align: center;
            display: none;
        }
        div{
            float: left;
        }
        p{
            position: absolute;
            top: 150px;
            text-align: center;
            margin-left: 70px;
        }
    </style>
</head>
<body>
    <main class="outer">
        <div>
            <figure>销售订单</figure>
            <figcaption class="ff">
                <ul>
                    <li>订单1</li>
                    <li>订单2</li>
                    <li>订单3</li>
                </ul>
            </figcaption>
        </div>
        <div>
            <figure>消费订单</figure>
            <figcaption >
                <ul>
                    <li>订单4</li>
                    <li>订单5</li>
                    <li>订单6</li>
                </ul>
            </figcaption>
        </div>
        <p></p>
    </main>
</body>
</html>
<script>
    $('div').each(function(){
        $(this).hover(function(){
            $(this).children().css('display','block');
        },function(index){
            // $(this).children(index).css('display','none');
            // console.log($(this).children(index));
            $('figcaption').css('display','none');
        });
    });
    $('li').hover(function(){
        $(this).css('backgroundColor','#f0f0f0');
    },function(){
        $(this).css('backgroundColor','#fff');
    });
    $('li').click(function(){
        var re=$(this).html();
        $('p').html(re);
    });
</script>